<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- <script>
      var num1 = 55
      var num2 = 66
      function f1 (num, num1) {
        var num = 55
        var num1 = 66
        num = 100
        num1 = 100
        num2 = 100
        console.log(num)
        console.log(num1)
        console.log(num2)
      }
      f1(num1, num2)
      console.log(num1)
      console.log(num2)
      console.log(num)
    </script> -->
    <script>
      var arr = [1, 22, 23, 41, 22, 23, 12, 1, 2, 10, 11, 10]
      var brr = [] // brr=[1]
      brr[0] = arr[0]
      for (var i = 0; i < arr.length; i++) {
        for (var j = 0; j < brr.length; j++) {
          if (brr[j] == arr[i]) {
            break
          }
          if (j == brr.length - 1) {
            brr.push(arr[i])
          }
        }
      }
      console.log(brr)
    </script>
  </body>
</html>
